package com.zqq.baselibrary.injection.module

import com.trello.rxlifecycle.LifecycleProvider
import dagger.Module
import dagger.Provides

/**
 * Rx生命周期管理能用Module
 * (第三方库组要用Module进行注解)
 * 在Activity中使用，所以在ActivityCom中注入
 * @author zqq on 2018/7/26
 */
@Module
class LifecycleProviderModule(private val lifecycleProvider: LifecycleProvider<*>) {

    @Provides
    fun provideLifecycleProvider(): LifecycleProvider<*> {
        return this.lifecycleProvider
    }

}